package com.jidong.test_springboot.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jidong.test_springboot.dao.MenuDao;
import com.jidong.test_springboot.entity.Menu;

@Component
public class MenuService {
	
	@Autowired
	private MenuDao menuDao;
	
	
	public IPage<Menu> list(IPage<Menu> page,QueryWrapper<Menu> qw){
		return menuDao.selectPage(page, qw);
	}
}
